package com.gccloud.dataroom.core.module.message.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.gccloud.common.utils.EmptyAsNullDeserializer;
import com.gccloud.common.validator.group.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

//import com.gccloud.dataroom.core.constant.PageDesignConstant;
//import com.gccloud.dataroom.core.module.basic.dto.BasePageDTO;
//import com.gccloud.dataroom.core.module.chart.bean.Chart;

/**
 * 大屏页面
 * @author hongyang
 * @version 1.0
 * @date 2023/3/13 10:49
 */
@Data
public class CmdMessageDTO {

    @JsonDeserialize(using = EmptyAsNullDeserializer.class)
    @NotBlank(message = "命令码", groups = Update.class)
    @ApiModelProperty(notes = "命令码")
    private String cmd;

    @JsonDeserialize(using = EmptyAsNullDeserializer.class)
    @ApiModelProperty(notes = "命令类型")
    private String type;

    @JsonDeserialize(using = EmptyAsNullDeserializer.class)
    @NotBlank(message = "id不能为空", groups = Update.class)
    @ApiModelProperty(notes = "访问body")
    private Object body;


}
